package com.qianfeng.shoon.pet.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.qianfeng.shoon.pet.utils.AppManager;

/**
 * Created by Shoon on 2015/10/27.
 */
public class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        AppManager.getAppManager().addActivity(this);

    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        AppManager.getAppManager().finishActivity();
    }
}
